﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.PatientMobileDevice
{
    /// <summary>
    /// 聊天列表
    /// </summary>
    public class ChatListItem
    {
        /// <summary>
        /// 聊天编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ChatListItemID { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string ContactName { get; set; }
        /// <summary>
        /// 消息内容（个人要接受的消息）
        /// </summary>
        public string MessageContent { get; set; }
        /// <summary>
        /// 是否有红点提醒
        /// </summary>
        public bool HasRedDot { get; set; }
        /// <summary>
        /// 聊天记录--发送者
        /// </summary>
        public string Sender { get; set; }
        /// <summary>
        /// 聊天记录--消息内容(个人要发送的消息)
        /// </summary>
        public string ChatMessage { get; set; }
        /// <summary>
        /// 聊天记录时间
        /// </summary>
        public DateTime ChatTime { get; set; }
        /// <summary>
        /// 删除标识符
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 发送者角色（0-医生，1-患者）
        /// </summary>
        public int Role { get; set; }
        /// <summary>
        /// 接收者角色（0-医生，1-患者）
        /// </summary>
        public int ContactRole { get; set; }
    }
}
